Skip to content

fix: add validation for robot node in URDF parsing#338

Open
MatrixNeoKozak wants to merge 1 commit into
gkjohnson:masterfrom
MatrixNeoKozak:fix/improvement-1781462698941
Open

fix: add validation for robot node in URDF parsing#338
MatrixNeoKozak wants to merge 1 commit into
gkjohnson:masterfrom
MatrixNeoKozak:fix/improvement-1781462698941

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

Added a check to verify that a node exists when parsing a URDF file. This prevents runtime errors when attempting to access properties on a non-existent element in malformed or empty files. A corresponding test case has been added to verify this behavior.

@gkjohnson

Copy link
Copy Markdown
Owner

Do you have an example of when you're running into this issue? Generally we have to expect that the user is providing well-formed files. Otherwise short of checking every single node, attribute, and value it's not possible to catch every failure case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants